import Vue from "vue"

import {
	Button,
	NavBar,
	Form,
	Field,
	Popup,
	Toast,
	Tabbar,
	TabbarItem,
	Sticky,
	Search,
	Icon,
	Swipe,
	SwipeItem,
	Lazyload,
	ShareSheet,
	Stepper,
	GoodsAction,
	GoodsActionIcon,
	GoodsActionButton,
	Uploader,
	Cell,
	CellGroup,
	Dialog,
	SwipeCell,
	Checkbox,
	Card,
	Tag,
	Tab,
	Tabs,
	SubmitBar,
	AddressList,
	Empty,
	AddressEdit 
} from "vant"

Vue.use(Button)
Vue.use(NavBar)
Vue.use(Form)
Vue.use(Field)
Vue.use(Popup)
Vue.use(Tabbar)
Vue.use(TabbarItem)
Vue.use(Sticky)
Vue.use(Search)
Vue.use(Icon)
Vue.use(Swipe)
Vue.use(SwipeItem)
Vue.use(ShareSheet)
Vue.use(Stepper)
Vue.use(GoodsAction)
Vue.use(GoodsActionButton)
Vue.use(GoodsActionIcon)
Vue.use(Uploader)
Vue.use(Cell)
Vue.use(CellGroup)
Vue.use(SwipeCell)
Vue.use(Checkbox)
Vue.use(Card)
Vue.use(Tag)
Vue.use(Tab)
Vue.use(Tabs)
Vue.use(SubmitBar)
Vue.use(AddressList)
Vue.use(Empty)
Vue.use(AddressEdit)

Vue.use(Lazyload, {
	lazyComponent: true
})

Vue.prototype.$toast = Toast
Vue.prototype.$dialog = Dialog
